import java.util.Arrays;
import java.util.Date;
import java.sql.*;
import java.util.Scanner;
import static java.lang.Math.*;
public class Test {

    public static void main(String[] args) {
        java.util.Date date = new java.util.Date();
        //得到⼀个毫秒级别的时间戳
        System.out.println(date.getTime());
    }

    public static void main5(String[] args) {
        double x = 30;
        double y = 40;
        // 静态导入的方式写起来更方便一些.
        //double result = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
        double result = sqrt(Math.pow(x, 2) + pow(y, 2));
        System.out.println(result);
    }

    public static void main4(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] array = new int[3];
        System.out.println(Arrays.toString(array));
    }

    public static void main3(String[] args) {
        Person person = new Person("root", 26);
        System.out.println(person);
    }
    public static void main2(String[] args) {
        Person person = new Person("ben", 22);
        Person person1 = new Person();
        Person person2 = new Person(20);
        Person person3 = new Person("Yu");

    }
    public static void main1(String[] args) {
        Person person = new Person();
        person.name = "John";
        person.age = 25;
        person.eat();
        person.sleep();
    }
}
